package com.design03_behavioral.pattern19_visitor.example02;

import com.design03_behavioral.pattern19_visitor.example01.Product;
import com.design03_behavioral.pattern19_visitor.example01.Visitor;

import java.time.LocalDate;

/**
 * @ClassName Wine
 * @Description TODO
 * @Author 22963
 * @DATE 2023/9/10 11:37
 */
public class Wine extends Product implements Acceptable {


    public Wine(String name, LocalDate producedDate, double price) {
        super(name, producedDate, price);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
